#ifndef THREADLOG_H
#define THREADLOG_H

#include <QThread>
#include <QDebug>

class ThreadLog : public QThread
{
    Q_OBJECT
public:
    explicit ThreadLog(QObject *parent = nullptr);

    void run() {
        while(m_cnt < 1000){
            usleep(10);
            qDebug()<<"Thread debug log:"<<QThread::currentThread();
            m_cnt++;
        }
    }
private:
    int m_cnt = 0;

};

#endif // THREADLOG_H
